import animates from "@/assets/image/animates.png"
import ground from "@/assets/image/ground.png"
import enemys from "@/assets/image/enemys.png"
import brave from "@/assets/image/brave.png"
const enemysLocationMap = {
    greenSlime: { // 绿史莱姆
        src: enemys,
        autoplay: true,
        bac: 'road',
        animates: [
            { x: 0, y: 0 },
            { x: -32, y: 0 },
        ]
    },
}

const personLocationMap = {
    personTop:{
        src: brave,
        bac: 'none',
        animates: [
            { x: 0, y: -96 },
            { x: -32, y: -96 },
            { x: -64, y: -96 },
            { x: -96, y: -96 },
        ]
    },
    personRight:{
        src: brave,
        bac: 'none',
        animates: [
            { x: 0, y: -64 },
            { x: -32, y: -64 },
            { x: -64, y: -64 },
            { x: -96, y: -64 },
        ]
    },
    personBottom:{
        src: brave,
        bac: 'none',
        animates: [
            { x: 0, y: -0 },
            { x: -32, y: -0 },
            { x: -64, y: -0 },
            { x: -96, y: -0 },
        ]
    },
    personLeft:{
        src: brave,
        bac: 'none',
        animates: [
            { x: 0, y: -32 },
            { x: -32, y: -32 },
            { x: -64, y: -32 },
            { x: -96, y: -32 },
        ]
    }
}
/**
 * personStatus
 * 0：没有人物
 * 1：向下1
 * 2：向下2
 * 3：向下3
 * 4：向下4
 * 5：向左1
 * 6：向左2
 * 7：向左3
 * 8：向左4
 * 9：向右1
 * 10：向右2
 * 11：向右3
 * 12：向右4
 * 13：向上1
 * 14：向上2
 * 15：向上3
 * 16：向上4
 * */
export const spriteMapLocation:any = {
    wall: { // 墙
        src: animates,
        animates: [
            { x: 0, y: -320 },
            { x: -32, y: -320 },
            { x: -64, y: -320 },
            { x: -96, y: -320 },
        ]
    },
    road: { // 墙
        src: ground,
        animates: [
            { x: 0, y: 0 }
        ]
    },
    ...enemysLocationMap,
    ...personLocationMap
}
